package com.sd.projectinterface;

import java.text.DecimalFormat;

import android.app.Application;

public class MyApplication extends Application{
	
	private int userId;
	private String username;
	private int totalScore;
	private int fastestTime;
	
	@Override
	public void onCreate(){
		super.onCreate();
	}
	
	public int getId(){
		return userId;
	}
	
	public void setUser(int i, String u, int ts, int ft){
		userId = i;
		username = u;
		totalScore = ts;
		fastestTime = ft;
	}
	
	public String getUsername(){
		return username;
	}
	
	public int getScore(){
		return totalScore;
	}
	
	public double getTime(){
		double timeInMin = (double)fastestTime / 1000;
		return timeInMin;
	}
	
}
